﻿@section title
{
    找回密码
}
@section pagetitle
{
    找回密码
}@section header
{
    <link rel="stylesheet" href="~/Themes/RongJi/Style/base/css/password.css">
}
@model RiderShop.Mobile.Modle.FindPasswordModel
<div class="userCenterHeader">
    <span class="iconWrapper">
        <img src="~/Themes/RongJi/Style/base/imgs/icon_mi.png">
    </span>
    <h3>找回密码</h3>
    <br class="clearfix">
</div>


<div class="box">

    <h3>请选择找回密码的方式</h3>
    <div>
        @if (Model.UserInfo != null)
        {
            if (!string.IsNullOrEmpty(Model.UserInfo.Email))
            {
                <a href=@("FindPasswordByEmail?"+ Request.QueryString.ToString())>
                    <div class="varifyway_header">
                        <div class="varifyway_detail clearfix">
                            <img src="@("../Themes/RongJi/Style/base/imgs/help_1.png")">

                            <div>
                                <span>通过邮箱找回</span>
                                <span>发送邮件至 @(Model.UserInfo.Email.Substring(0, 2) + "..." + Model.UserInfo.Email.Substring(Model.UserInfo.Email.IndexOf("@") - 2))</span>
                            </div>
                        </div>
                    </div>
                </a>
            }

            if (!string.IsNullOrEmpty(Model.UserInfo.CellPhone))
            {
                <a href=@("FindPasswordByPhone?"+ Request.QueryString.ToString())>
                    <div class="varifyway_header">
                        <div class="varifyway_detail clearfix">
                            <img src="@("../Themes/RongJi/Style/base/imgs/help_1.png")">

                            <div>
                                <span>通过手机找回</span>
                                <span>发送短信验证码到 @(Model.UserInfo.CellPhone.Substring(0, 3) + "-----" + Model.UserInfo.CellPhone.Substring(Model.UserInfo.CellPhone.Length - 3, 3))</span>
                            </div>
                        </div>
                    </div>
                </a>
            }
        }
    </div>
</div>




@section footer
{
    <script type="text/javascript">
        $(function () {
            //让toolbar选中
            var $homeImg = $("#homeImg");
            var $categoryImg = $("#categoryImg");
            var $myaccountImg = $("#myaccountImg");
            var $searchImg = $("#searchImg");

            $homeImg.attr("src", "/Themes/RongJi/Style/base/imgs/f10.png");
            $categoryImg.attr("src", "/Themes/RongJi/Style/base/imgs/f2.png");
            $myaccountImg.attr("src", "/Themes/RongJi/Style/base/imgs/f3_c.png");
            $searchImg.attr("src", "/Themes/RongJi/Style/base/imgs/f4.png");


        });
    </script>
}
